﻿<%@ Page Language="C#" MasterPageFile="~/StudentManagement/StudentMaster.master"
    AutoEventWireup="true" CodeFile="EditBasicInfo.aspx.cs" Inherits="StudentManagement_EditBasicInfo"
    Title="普校就业网 - 学生控制面板 - 修改基本信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
   function $(id)
   {
      var mastername="ctl00_ContentPlaceHolder1_";
      return document.getElementById(mastername+id);
   }
   function CheckInfo()
   {
            //判断姓名
            var name=$("txtName");
            if(!(isnull(name.value)))
            {
                alert("姓名不能为空！");
                return false;
            }
            
            //判断出生日期
            var createdate=$("txtCreateDate");
            if(!(isnull(createdate.value)))
            {
                alert("出生日期不能为空！");
                return false;
            }
            
            //判断移动电话
            var cellphone=$("txtCellPhone");
            if(!(isnull(cellphone.value)))
            {
                alert("移动电话不能为空！");
                return false;
            }
            
            //判断电子邮箱
            var email=$("txtEmail");
            if(!(isnull(email.value)))
            {
                alert("电子邮箱不能为空！");
                email.focus();
                return false;
            }
            if(!(checkemail(email.value)))
            {
                alert("电子邮箱格式不正确，请正确填写！");
                email.focus(); 
                return false;
            }
                       
            //判断联系地址
            var address=$("txtAddress");
            if(!(isnull(address.value)))
            {
                alert("联系地址不能为空！");
                return false;
            }
   }
    </script>

    <table width="770" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="770" height="10" valign="top">
                <img name="gongzuoshenqingjilu_r2_c2" src="../Content/images/gongzuoshenqingjilu_r2_c2.jpg"
                    width="770" height="10" border="0" id="gongzuoshenqingjilu_r2_c2" alt="" /></td>
        </tr>
        <tr>
            <td width="770" height="500" align="center" valign="top" background="../Content/images/gongzuoshenqingjilu_r4_c2.jpg">
                <table width="723" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="25" colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td width="221" height="32" align="right" class="d">
                            <span class="fff">﹡</span>姓名：</td>
                        <td width="502" height="32" align="left" class="d">
                            <%--<input name="textfield" type="text" class="d" size="25" />--%>
                            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>性别：</td>
                        <td height="32" align="left" class="d">
                            <asp:RadioButton ID="rbtn_boy" runat="server" Text="男" GroupName="sex" />
                            <asp:RadioButton ID="rbtn_girl" runat="server" Text="女" GroupName="sex" />
                        </td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>出生日期：</td>
                        <td height="32" align="left" class="d">
                            <input type="text" runat="server" id="txtCreateDate" onfocus="setday(this)" readonly="readonly" />
                        </td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            联系电话：</td>
                        <td height="32" align="left" class="d">
                            <asp:TextBox ID="txtContactTel" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>移动电话：</td>
                        <td height="32" align="left" class="d">
                            <asp:TextBox ID="txtCellPhone" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            个人主页/博客：</td>
                        <td height="32" align="left" class="d">
                            <asp:TextBox ID="txtHomePage" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" class="d" style="height: 32px">
                            <img src="../Content/images/0.jpg" width="650" height="1" /></td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>户口所在地：</td>
                        <td height="32" align="left" class="d">
                            <select name="x_suozaidi" runat="server" id="ddlprovince">
                                <option value="北京">北京 </option>
                                <option value="天津">天津 </option>
                                <option value="上海" selected="selected">上海 </option>
                                <option value="重庆">重庆 </option>
                                <option value="广东">广东 </option>
                                <option value="江苏">江苏 </option>
                                <option value="浙江">浙江 </option>
                                <option value="福建">福建 </option>
                                <option value="湖南">湖南 </option>
                                <option value="湖北">湖北 </option>
                                <option value="山东">山东 </option>
                                <option value="辽宁">辽宁 </option>
                                <option value="吉林">吉林 </option>
                                <option value="云南">云南 </option>
                                <option value="四川">四川</option>
                                <option value="安徽">安徽</option>
                                <option value="江西">江西 </option>
                                <option value="黑龙江">黑龙江 </option>
                                <option value="河北">河北 </option>
                                <option value="陕西">陕西 </option>
                                <option value="海南">海南 </option>
                                <option value="河南">河南 </option>
                                <option value="山西">山西 </option>
                                <option value="内蒙古">内蒙古 </option>
                                <option value="广西">广西</option>
                                <option value="贵州">贵州 </option>
                                <option value="宁夏">宁夏 </option>
                                <option value="青海">青海</option>
                                <option value="新疆">新疆 </option>
                                <option value="西藏">西藏 </option>
                                <option value="甘肃">甘肃 </option>
                                <option value="台湾">台湾 </option>
                                <option value="香港">香港</option>
                                <option value="澳门">澳门 </option>
                                <option value="国外">国外 </option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>E-mail：</td>
                        <td height="32" align="left" class="d">
                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>联系地址：</td>
                        <td height="32" align="left" class="d">
                            <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            <span class="fff">﹡</span>您目前的状态：</td>
                        <td height="32" align="left" class="d">
                            <select name="select5" class="d" id="ddlCurrentStatu" runat="server">
                                <option value="待岗中">待岗中</option>
                                <option value="已工作">已工作</option>
                                <option value="应届毕业生">应届毕业生</option>
                            </select>
                            <span class="fff">非常重要！</span></td>
                    </tr>
                    <tr>
                        <td width="732" height="32" colspan="2" align="right" class="d">
                        </td>
                    </tr>
                    <tr>
                        <td height="32" align="right" class="d">
                            &nbsp;</td>
                        <td height="32" align="left" class="d">
                            <%--<img src="../Content/images/000.jpg" width="102" height="31" />--%>
                            <asp:ImageButton ID="ibtn_FinishEdit" OnClientClick="CheckInfo();" Width="102" Height="31"
                                ImageUrl="~/Content/images/000.jpg" runat="server" OnClick="ibtn_FinishEdit_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td width="770" height="14" valign="top">
                <img name="gongzuoshenqingjilu_r6_c2" src="../Content/images/gongzuoshenqingjilu_r6_c2.jpg"
                    width="770" height="14" border="0" id="gongzuoshenqingjilu_r6_c2" alt="" />
            </td>
        </tr>
    </table>
</asp:Content>
